package com.fly.lambda.dao;

import com.fly.lambda.domain.Account;
import com.fly.lambda.framework.dao.BaseDAO;
import org.springframework.stereotype.Repository;

/**
 * Created by Fly on 2016/7/19.
 */
@Repository
public class AccountDAO  extends BaseDAO<Account> {

    public Account queryByLoginNameAndPwd(String loginName, String password){
        String hql = "from Account where loginName = ? and password = ?";
        return doQueryUnique(hql, true, loginName, password);
    }

}
